using Microsoft.EntityFrameworkCore;
using Webapi.Domain.Entity;

namespace webapi.Infrastructure.Db
{
    public class webapiDbContext : DbContext
    {
        private readonly string
           _conString = "server=.;database=webapi;uid=sa;pwd=123456;";

        public webapiDbContext(DbContextOptions options) : base(options)
        {

        }
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }

        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRoles> UserRoles { get; set; }
        public DbSet<ExecetionLog> ExecetionLogs { get; set; }
        public DbSet<AuditLog> AuditLog {get;set;}
    }
}